<template>
  <div>
      {{ formValidate.fkRuralId }}
   <Form ref="formValidate" :model="formValidate" :label-width="120" :label-colon="true" :rules="formRules"
         style="width: 200px;"
         :disabled="type === 3">
      <!--农村党支部成员类型名称-->
      <FormItem label="农村名称" prop="rfRuralName">
        <Input v-model="formValidate.rfRuralName"/>
      </FormItem>
      <FormItem label="人员类型" prop="typeName">
        <Input v-model="formValidate.typeName"/>
      </FormItem>
     <FormItem label="分布区间" prop="distributionIntervalName">
       <Input v-model="formValidate.distributionIntervalName"/>
     </FormItem>
      <FormItem label="分布数量" prop="distributionNumber">
        <Input v-model="formValidate.distributionNumber"/>
      </FormItem>
      <FormItem :label-width="0" style="text-align: right">
        <Button style="margin-right: 10px;" @click="publicReset('formValidate')">取消</Button>
        <Button type="primary" @click="publicSubmit('formValidate')">确定</Button>
      </FormItem>
    </Form>
  </div>
</template>

<script>
import { updateMixin } from '@/mixin/index'
import API_KEY from '../../../api'
import store from '@/store'

export default {
  mixins: [updateMixin],
  data () {
    return {
      formValidate: { // 搜索条件
        fkRuralId: store.getters.userInfo.deptList[0].id,
        typeName: '',
        distributionIntervalName: '',
        DistributionNumber: ''
      },
      formRules: {
        rfRuralName: [{ required: true, message: '请输入农村名称', trigger: 'blur' }]
      },
      action: {
        readDataById: API_KEY.ruralPartyBranchPersonnelDistribute.curdRural,
        createData: API_KEY.ruralPartyBranchPersonnelDistribute.curdRural,
        updateData: API_KEY.ruralPartyBranchPersonnelDistribute.curdRural
      }
    }
  }
}

</script>

<style scoped lang="scss">
</style>
